<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .wrapper {
        display: grid;
        /* 定义列数，并且定义每一列的宽度 */
        grid-template-columns: 100px 200px 100px;
        /* 定义行数，并且定义每一行的高度 */
        grid-template-rows: 100px 100px;
        grid-row-gap: 10px;
        grid-column-gap: 20px;
        grid-template-areas: ". header header" "sidebar main main";
      }
      .item {
        background-color: yellow;
      }
      .header {
        grid-area: header;
        background-color: pink;
      }
      .sidebar {
        grid-area: sidebar;
        background-color: lightblue;
      }
      .main {
        grid-area: main;
        background-color: lightgreen;
      }
    </style>
  </head>
  <body>
    <div class="wrapper">
      <div class="header">Header</div>
      <div class="sidebar">Sidebar</div>
      <div class="main">Main</div>
      <!-- <div class="item"></div>
      <div class="item"></div>
      <div class="item"></div>
      <div class="item"></div>
      <div class="item"></div>
      <div class="item"></div> -->
    </div>
  </body>
</html>
